<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    var imgs = [
        {url:'img/1.jpg',title:'呆萌'},
        {url:'img/2.jpg',title:'性感'},
        {url:'img/3.png',title:'开朗'},
        {url:'img/4.png',title:'阳光'}
    ];
    console.log(imgs[2].url)
</script>
</body>
</html>